package com.mrzhou.core.tool.launch;


import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.core.Ordered;

public interface LaunchService extends Ordered, Comparable<LaunchService> {

    void launcher(SpringApplicationBuilder builder, String appName, String profile, boolean isLocalDev);

    default int getOrder() {
        return 0;
    }

    default int compareTo(LaunchService o) {
        return Integer.compare(this.getOrder(), o.getOrder());
    }


}
